﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DapperLinq.Helper
{
    internal class DbHelper
    {
        public static IDbConnection Db => GetConnection();





        private static IDbConnection GetConnection()
        {
            var connectionStringWithEnlist = "Server=192.168.31.13;database=iSchoolData;user id=iSchool;password=SxbLucas$0769;MultipleActiveResultSets=true;";
            return new System.Data.SqlClient.SqlConnection(connectionStringWithEnlist);
        }



        private static IDbConnection GetProdConnection()
        {
            var connectionStringWithEnlist = "Server=10.1.0.199;database=iSchoolData;user id=iSchool;password=SxbLucas$0769;MultipleActiveResultSets=true;";
            return new System.Data.SqlClient.SqlConnection(connectionStringWithEnlist);
        }
    }
}
